package cn.edu.xust.Ro;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ufo
 * @version 1.0
 * @date 2022/9/1 14:41
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MqttDeviceStateRo implements Comparable<MqttDeviceStateRo> {



    public String macId;
    public String hotelId;
    public String roomId;
    public String connectedAt;
    public String connected;

    int receivenum;
    int pubnum;
    String version;



    String ip;


    String ipaddress;


    Integer ifofficial;

    /**
     * 将对象按姓名字典序升序排序
     * @param o
     * @return
     */
    @Override
    public int compareTo(MqttDeviceStateRo o) {
        return this.roomId.compareTo(o.getRoomId());
    }


}
